package com.ld.admin.task;

import java.util.Date;

import com.ld.common.util.task.TaskThread;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MyRunnable extends TaskThread {

    @Override
    public void run() {
        log.warn("示例（Runnable）定时任务运行中……" + new Date());
//        DynamicBaseDao baseDao = DynamicDaoFactory.getDynamicDao(
//                "jdbc:mysql://192.168.1.245:3306/software_center_test?useUnicode=true&characterEncoding=UTF-8&useSSL=false", "software",
//                "software251");
//        long userCount = 0;
//        try {
//            userCount = baseDao.getCount(SystemUser.class);
//        } catch (Throwable e) {
//        }
//        log.warn("userCount==" + userCount);
    }
}